<?php
namespace App\Models\Common;

use App\Models\BaseModel;

class AreaModel extends BaseModel
{

	protected $table = 'area';

	//根据ids获取地址名称
	static public function getNamesByIDs(array $ids)
	{
		$result = self::select('id', 'name')->whereIn('id', $ids)->get()->toArray();
		return array_column($result, null, 'id');
	}
}
